h=eval(input("请输入本月的工资:"))
g=h-5000
if g<=0:
    s=0
elif g<=1500:
    s=g*0.03
elif g<=4500:
    s=(g-1500)*0.1+1500 * 0.03
elif g<=9000:
    s=(g-4500)*0.2+3000 * 0.1+1500 * 0.03
elif g<=35000:
    s=(g-9000)*0.25+4500 * 0.2+3000 * 0.1+1500 * 0.03
elif g<=55000:
    s=(g-35000)*0.3+26000 * 0.25+4500 * 0.2+3000 * 0.1+1500 * 0.03
elif g<=80000:
    s=(g-55000)*0.35+20000 * 0.3+26000 * 0.25+4500 * 0.2+3000 * 0.1+1500 * 0.03
elif 80000<=g:
    s=(g-80000)*0.45+25000 * 0.35+20000 * 0.3+26000 * 0.25+4500 * 0.2+3000 * 0.1+1500 * 0.03
print("本月的税收为： {}".format(s))